import Vue from 'vue'
import axios from 'axios'
import NProgress from 'nprogress'
// axios 请求拦截
axios.interceptors.request.use(function (config) {
  NProgress.start()
  return config
})

// axios 响应拦截
axios.interceptors.response.use(function (response) {
  NProgress.done()
  return response
})
axios.defaults.baseURL = ' http://172.20.10.10:9000/' // 后端接口
Vue.prototype.$http = axios
